import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '@/views/HomeView.vue'
import NotFound from '@/views/NotfindView.vue'
Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'home',
    component: HomeView
  },
  { 
    path: '/:pathMatch(.*)*', 
    name: 'notfind', 
    component: NotFound 
  },
]
const router = new VueRouter({
  routes,
  mode: 'history',
})

export default router
